package com.jspx.boot.log;


import com.jspx.boot.Logger;

/**
 * 这个接口没有实际用处，只是为了兼容老版本 JFTPS
 */
public class LoggerFactory  {



    private LoggerFactory() {
    }

    public static void println(String str) {
        System.out.println(str);
    }

    public static void printError(String str) {
        System.err.println(str);
    }

    public static void printError(String str, Throwable e) {
        System.err.println(str);
        e.printStackTrace();
    }

    public static void setLoggerProvider(Object provider) {

    }

    public static Logger getLogger(Class key) {
        return new Slf4jLogger(null);
    }

    public static Logger getLogger(String key) {
        return new Slf4jLogger(null);
    }
}
